package edu.kjxy.day03.t6;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/2/2 18:08
 */
public class MyThread1 extends Thread{
    private Task task;
    public MyThread1 (Task task){
        super();
        this.task = task;
    }

    @Override
    public void run() {
        super.run();
        CommonUtils.beginTime1 = System.currentTimeMillis();
        task.doLongTimeTask();
        CommonUtils.endTime1 = System.currentTimeMillis();
    }
}
